package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.model.Company;
import com.corpcredit.service.GenericManager;

public class HyfxList extends BasePage implements Serializable {
    private GenericManager<Company, Long> hyfxManager;

    public void setCompanyManager(GenericManager<Company, Long> companyManager) {
        this.hyfxManager = companyManager;
    }

    public HyfxList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getHyfxs() {
        return sort(hyfxManager.getAll());
    }
}

